Page({
  data: {},
  onLoad() {
    this.test();
  },
  myAsyncFunc(){
    return new Promise(function (resolve,reject) {
      setTimeout(function () {
        console.log("myAsyncFunc done!");
        resolve({data:"Hellow World"});
      },1000);
    });
  },

  async test() {
    console.log('1');
    var result = await this.myAsyncFunc();
    console.log(result.data);
    console.log('2');
  },


});


// 2018-02-27 22:17:38,UTF-8,dorapay@dorabox.com.cn,商品订单,CtHQowpaeAyRQbxwWoRc2O97yoPPPV3yhyjlu1q+QPXCXcPIDw/rF3HKAyghEvXqzkP1KLUz0tyfL2214rwZm2zo/Sr/6sieSNXmwaonG+XxrpUdTXn8rOyRpxhp/1fu7ANzany4ofDRXfGy1arvcuNY5/LH5hK5PY6HjUbS0fj/xnsBshQrXsTG0mhT8QfP2oirvpMu8cKc+qUxxWmeUEObFjayHP91EvsR57LhGuyuguWoHV/Pk/UNB+wGfG5/5HCevSHJrL9qOH9CaBYDlMc3GW4f5JiBTG9xvqEDWoEScIuw9gdUEaqa4nBYssM9wwUs/lmCNe8vY1VZWxP3nQ==,商品2号,2088002807307193,0.01,2ae59e2bb94c73723b22a8ac399ff70hgu,[{"amount":"0.01","fundChannel":"ALIPAYACCOUNT"}],trade_status_sync,TRADE_SUCCESS,0.01,2018012702090304,0.01,RSA2,2088221993986564,2018-02-27 22:17:39,2018-02-27 22:17:39,1.0,f03dc311-1bc8-11e8-aacd-6c0b8481e2be,0.01,2018022721001004190239594296,2018012702090304,mas***@126.com,0.00